package it.vidoc.controller;

import it.vidoc.utils.LoadNewPage;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.GenericForwardComposer;

@SuppressWarnings("rawtypes")
public class TopMenuController extends GenericForwardComposer {
	private static final long serialVersionUID = 2897957930521909961L;
	private String alberto;
	
	
	@SuppressWarnings("unchecked")
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
	}

	public void onClick$menuitemRiDen(Event event){
//		LoadNewPage.loadNewPage("/zulpages/RIricden.zul");
		LoadNewPage.loadNewPage("/zulpages/prova.zul");		
	}
	
	public void onClick$menuitemRiCF(Event event){
		LoadNewPage.loadNewPage("/zulpages/RIriccofi.zul");		
	}
	
	public void onClick$menuitemRiNRea(Event event){
		LoadNewPage.loadNewPage("/zulpages/RIricnrea.zul");		
	}
	
	public void onClick$menuitemRpRic(Event event){
		LoadNewPage.loadNewPage("/zulpages/RPricerca.zul");		
	}
	public void onClick$menuitemAmRic(Event event){
		LoadNewPage.loadNewPage("/zulpages/AMricerca.zul");		
	}
}
